{extend name="common/application" /}
{block name="title"}<title>政务资讯</title>{/block}
{block name="css"}
<link rel="stylesheet" type="text/css" href="_CSS_/index.css" />
<link rel="stylesheet" type="text/css" href="_CSS_/news.css"/>
<!--[if lt IE 9]>
<script src="http://www.ijquery.cn/js/html5shiv.js"></script>
<![endif]-->
<style>
.username {width: auto;float: none;font-size: 13px;color: #3377c1;}
.mr0{margin-right:0;}
</style>
{/block}

{block name="navbar"}{include file="/common/navbar" /}{/block}
{block name="content"}
			<!-- 主体内容 -->
			<div class="main">
				<div class="mainBody normalBox clearfix">
					<!--广告-->
					<div class="ads normalBox">
						<a class="businessImg" target="_blank" href="business.html"><img src="_IMG_/ads01.png" /></a>
					</div>
					<!--新闻-->
					<div class="news">
						<!--国务院要闻-->
						<div class="importantNews sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-chief"></span>
									<span>国务院要闻</span>
								</p>
								<a class="readMore fr" href="government_list.html#1">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide">
									<div class="Last">
										<a class="newsTitle text_overflow fl" href="government_details.html">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
										<a class="cover fl" href="government_details.html">
											<img src="_IMG_/7.png" />
										</a>
										<p class="abstract fl">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</p>
										<a class="goDetail fl" href="government_details.html">[阅读]</a>
									</div>
								
								</div>
							</div>
						</div>
						<!--国际要闻-->
						<div class="international sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-ipr"></span>
									<span>国际要闻</span>
								</p>
								<a class="readMore fr" href="government_list.html#6">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide">
									<div class="imgbox">
										<a class="cover parent fl" href="government_details.html">
											<img src="_IMG_/6.png" />
											<p class="coverTitle text_overflow">副局长知识产权局局长副局长知识产权局局长</p>
										</a>
										<a class="cover parent fl" href="government_details.html">
											<img src="_IMG_/6.png" />
											<p class="coverTitle text_overflow">副局长知识产权局局长副局长知识产权局局长</p>
										</a>
									</div>
									
								</div>
							</div>
						</div>
						<!--推荐-->
						<div class="recommendArea">
							<div id="slideBox" class="slideBox hide">
								<div class="hd">
									<ul>
										<li>1</li>
										<li>2</li>
										<li>3</li>
										<li>4</li>
										<li>5</li>
									</ul>
								</div>
								<div class="bd">
									<ul>
										<li>
											<a href="javascript:;" target="_blank"><img src="_IMG_/3.png" /></a>
										</li>
										<li>
											<a href="javascript:;" target="_blank"><img src="_IMG_/4.png" /></a>
										</li>
										<li>
											<a href="javascript:;" target="_blank"><img src="_IMG_/5.png" /></a>
										</li>
										<li>
											<a href="javascript:;" target="_blank"><img src="_IMG_/6.png" /></a>
										</li>
										<li>
											<a href="javascript:;" target="_blank"><img src="_IMG_/7.png" /></a>
										</li>
									</ul>
								</div>
								<!-- 下面是前/后按钮代码，如果不需要删除即可 -->
								<a class="prev" href="javascript:void(0)"></a>
								<a class="next" href="javascript:void(0)"></a>
							</div>

						</div>
						<!--广告-->
						<div class="ads ads01">
							<a class="adsImg" href="javascript:;"><img src="_IMG_/banner1.png" /></a>
						</div>
						<!--政策导读-->
						<div class="policys sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-read"></span>
									<span>政策导读</span>
								</p>
								<a class="readMore fr" href="government_list.html#3">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide"></div>
							</div>
						</div>
						<!--政策早知道-->
						<div class="earlys sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-early"></span>
									<span>政策早知道</span>
								</p>
								<a class="readMore fr" href="government_list.html#2">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide"></div>
							</div>
						</div>
						<!--工作报道-->
						<div class="reports sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-report"></span>
									<span>工作报道</span>
								</p>
								<a class="readMore fr" href="government_list.html#4">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide">
									<div class="imgbox">
										<a class="cover parent fl" href="government_details.html">
											<img src="_IMG_/6.png" />
											<p class="coverTitle text_overflow">副局长知识产权局局长副局长知识产权局局长</p>
										</a>
										<a class="cover parent fl mr0" href="government_details.html">
											<img src="_IMG_/6.png" />
											<p class="coverTitle text_overflow">副局长知识产权局局长副局长知识产权局局长</p>
										</a>
									</div>
								</div>
							</div>
						</div>
						<!--广告-->
						<div class="ads ads02">
							<a class="adsImg" href="http://jhsjk.people.cn/" target="_blank"><img src="_IMG_/banner3.png" /></a>
						</div>
						<!--企业信息-->
						<div class="companys sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-home"></span>
									<span>企业信息</span>
								</p>
								<a class="readMore fr" href="company_list.html">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide">
									<a class="companyName text_overflow" href="javascript:;">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
									<a class="companyName text_overflow" href="javascript:;">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
									<a class="companyName text_overflow" href="javascript:;">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
									<hr />
								</div>
							</div>
						</div>
						<!--政策信息-->
						<div class="policyInfo sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-info"></span>
									<span>政策信息</span>
								</p>
								<a class="readMore fr" href="policys.html">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide">
									<a class="infosTitle text_overflow" href="javascript:;">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
								</div>
							</div>
						</div>
						<!--平台活动-->
						<div class="activitys sectionItem">
							<div class="conHeader">
								<p class="sectionName fl">
									<span class="icons icon-activity"></span>
									<span>平台活动</span>
								</p>
								<a class="readMore fr" href="government_list.html#5">更多<span class="icons icon-right"></span></a>
							</div>
							<div class="conBody">
								<div class="nodatas hide">
									<img src="_IMG_/null01.png">
									<p>暂无数据</p>
								</div>
								<div class="hasdatas hide">
									<a class="infosTitle text_overflow" href="javascript:;">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
									<hr />
									<div class="Last fl">
										<a class="cover fl" href="government_details.html">
											<img src="_IMG_/7.png" />
										</a>
										<a class="newsTitle text_overflow fl" href="government_details.html">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
										<p class="abstract fl">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</p>
										<a class="goDetail fl" href="government_details.html">[阅读]</a>
									</div>
									<div class="Last fl">
										<a class="cover fl" href="government_details.html">
											<img src="_IMG_/7.png" />
										</a>
										<a class="newsTitle text_overflow fl" href="government_details.html">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</a>
										<p class="abstract fl">副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长副局长知识产权局局长</p>
										<a class="goDetail fl" href="government_details.html">[阅读]</a>
									</div>
								</div>
							</div>
						</div>

					</div>
				</div>
			</div>
{/block}

{block name="js"}
		<script src="_JS_/getMyDate.js"></script>
		<script type="text/javascript">
			$(function() {
				//jQuery(".slideBox").slide({mainCell: ".bd ul",autoPlay: true});

				/*国务院要闻*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_government",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 12,
						'type': 1
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								var newHref = 'government_details.html?id=' + msg.data[0].id;
								$('.importantNews .newsTitle').text(msg.data[0].title);
								$('.importantNews .newsTitle').attr('href', newHref);
								$('.importantNews .cover').attr('href', newHref);
								$('.importantNews .goDetail').attr('href', newHref);
								$('.importantNews img').attr('src', msg.data[0].pic);
								var abstract = cut(msg.data[0].abstract, 40);
								$('.importantNews .abstract').text(abstract); 
								$('.importantNews .article').remove(); 
								for(var i = 1; i < msg.data.length; i++) { 
									var html  ='' ; 
										html +='<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-news01"></span><span class="titleList text_overflow">' + msg.data[i].title + '</span></a>'; 
										$( '.importantNews .Last').append(html); 
								} 
								$( '.importantNews .hasdatas').removeClass( 'hide');
							} catch(e) {
								//TODO handle the exception
							}
						} else if(msg.code == 1000) {
							$('.importantNews .nodatas').removeClass('hide');
							$('.importantNews .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*国际要闻*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_government",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 13,
						'type': 6
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.international .cover').eq(0).find('.coverTitle').text(msg.data[0].title);
								$('.international .cover').eq(0).find('img').attr('src', msg.data[0].pic);
								$('.international .cover').eq(0).attr('href', 'government_details.html?id=' + msg.data[0].id);
								$('.international .cover').eq(1).find('.coverTitle').text(msg.data[1].title);
								$('.international .cover').eq(1).find('img').attr('src', msg.data[1].pic);
								$('.international .cover').eq(1).attr('href', 'government_details.html?id=' + msg.data[1].id);
								$('.international .article').remove();
								for(var i = 2; i < msg.data.length; i++) {
									var html = '<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-news02"></span><span class="titleList text_overflow">' + msg.data[i].title + '</span></a>';
									$('.international .hasdatas').append(html);
								}
								$('.international .article').eq(0).addClass('short');
								$('.international .article').eq(1).addClass('short');
								$('.international .article').eq(2).addClass('short');
								$('.international .article').eq(3).addClass('short');
								$('.international .article').eq(4).addClass('short');
								$('.international .article').eq(5).addClass('short');
								$('.international .article').eq(0).find('.titleList').addClass('bold');
								$('.international .article').eq(3).find('.titleList').addClass('bold');
								$('.international .article').eq(6).find('.titleList').addClass('bold');
							} catch(e) {
								//TODO handle the exception
							}
							$('.international .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.international .nodatas').removeClass('hide');
							$('.international .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*banner*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_banner",
					dataType: 'jsonp',
					jsonp: 'callback',
					success: function(msg) {
						if(msg.code == 200) {
							$('#slideBox .hd ul').html('');
							$('#slideBox .bd ul').html('');
			                for (var i = 0; i < msg.data.length; i++) {
			                    var html = '';
			                    var html01 = ''; 
			                    html += '<li><a href="'+msg.data[i].url+'" target="_blank"><img src="/Images/BannerSheet/' + msg.data[i].img_url + '" /></a></li>';
			                    html01 += '<li class="">'+(i+1)+'</li>';
			                    $('#slideBox .hd ul').append(html01);
			                    $('#slideBox .bd ul').append(html);
			                }
							/*初始化*/
							$(".slideBox").slide({
								mainCell: ".bd ul",
								autoPlay: true
							});
							$('#slideBox').removeClass('hide');
						} else if(msg.code == 1000) {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*推荐*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/governments",
					dataType: 'jsonp',
					jsonp: 'callback',
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.recommendArea .article').remove();
								for(var i = 0; i < msg.data.length; i++) {
									var html = '<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-square"></span><span class="types">【'+msg.data[i].name+'】</span><span class="titleList text_overflow width262">'+msg.data[i].title+'</span></a>';
									$('#slideBox').after(html);
								}
							} catch(e) {
								//TODO handle the exception
							}
							
						} else if(msg.code == 1000) {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*政策导读*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_government",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 12,
						'type': 3
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.policys .hasdatas').html('');
								for(var i = 0; i < msg.data.length; i++) {
									var html = '<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-news03"></span><span class="titleList text_overflow">' + msg.data[i].title + '</span></a>';
									$('.policys .hasdatas').append(html);
								}
								$('.policys .article').eq(0).find('.titleList').addClass('bold');
								$('.policys .article').eq(3).find('.titleList').addClass('bold');
								$('.policys .article').eq(6).find('.titleList').addClass('bold');
								$('.policys .article').eq(9).find('.titleList').addClass('bold');
								$('.policys .article').eq(2).after('<hr/>');
								$('.policys .article').eq(5).after('<hr/>');
								$('.policys .article').eq(8).after('<hr/>');
							} catch(e) {
								//TODO handle the exception
							}
							$('.policys .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.policys .nodatas').removeClass('hide');
							$('.policys .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*政策早知道*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_government",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 10,
						'type': 2
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.earlys .hasdatas').html('');
								for(var i = 0; i < msg.data.length; i++) {
									var html = '<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-news01"></span><span class="titleList text_overflow">' + msg.data[i].title + '</span></a>';
									$('.earlys .hasdatas').append(html);
								}
								$('.earlys .article').eq(0).find('.titleList').addClass('bold');
								$('.earlys .article').eq(5).find('.titleList').addClass('bold');
								$('.earlys .article').eq(4).after('<hr/>');
							} catch(e) {
								//TODO handle the exception
							}
							$('.earlys .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.earlys .nodatas').removeClass('hide');
							$('.earlys .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*工作报道*/				
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_government",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 8,
						'type': 4
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.reports .article').remove();
								$('.reports .cover').eq(0).find('.coverTitle').text(msg.data[0].title);
								$('.reports .cover').eq(0).find('img').attr('src', msg.data[0].pic);
								$('.reports .cover').eq(0).attr('href', 'government_details.html?id=' + msg.data[0].id);
								$('.reports .cover').eq(1).find('.coverTitle').text(msg.data[1].title);
								$('.reports .cover').eq(1).find('img').attr('src', msg.data[1].pic);
								$('.reports .cover').eq(1).attr('href', 'government_details.html?id=' + msg.data[1].id);								
								for(var i = 2; i < msg.data.length; i++) {
									var html = '<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-news01"></span><span class="titleList text_overflow">' + msg.data[i].title + '</span></a>';
									$('.reports .hasdatas').append(html);
								}
								$('.reports .article').eq(0).find('.titleList').addClass('bold');
							} catch(e) {
								//TODO handle the exception
							}
							$('.reports .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.reports .nodatas').removeClass('hide');
							$('.reports .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*企业信息*/				
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_company",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						//'number': 8,
						'type': 1
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.companys .hasdatas').html('');								
								for(var i = 0; i < 3; i++) {
									var html = '<a class="companyName text_overflow" href="javascript:;">'+msg.data[i].name+'</a>';
									$('.companys .hasdatas').append(html);
								}
								$('.companys .hasdatas').append('<hr/>');
								for(var j = 3; j < msg.data.length; j++) {
									var html = '<a class="article" href="javascript:;"><span class="icons icon-news01"></span><span class="titleList text_overflow">' + msg.data[j].name + '</span></a>';
									$('.companys .hasdatas').append(html);
								}								
							} catch(e) {
								//TODO handle the exception
							}
							$('.companys .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.companys .nodatas').removeClass('hide');
							$('.companys .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*政策信息*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_info",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 14,
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.policyInfo .article').remove();
								$('.policyInfo .infosTitle').html(msg.data[0].content);
								for(var i = 1; i < msg.data.length; i++) {
									var html = '<a class="article" href="javascript:;"><span class="icons icon-news02"></span><span class="titleList text_overflow">' + msg.data[i].content + '</span></a>';
									$('.policyInfo .hasdatas').append(html);
								}
							} catch(e) {
								//TODO handle the exception
							}
							$('.policyInfo .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.policyInfo .nodatas').removeClass('hide');
							$('.policyInfo .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				/*平台活动*/
				$.ajax({
					type: "get",
					url: "/index.php/api/news/new_government",
					dataType: 'jsonp',
					jsonp: 'callback',
					data: {
						'number': 10,
						'type': 5
					},
					success: function(msg) {
						if(msg.code == 200) {
							try {
								$('.activitys .infosTitle').html(msg.data[0].title);
								$('.activitys .article').remove();
								for(var i = 0; i < 7; i++) {
									var html = '<a class="article" href="government_details.html?id=' + msg.data[i].id + '"><span class="icons icon-news03"></span><span class="titleList text_overflow">' + msg.data[i].title + '</span></a>';
									$('.activitys .infosTitle').after(html);
								}
								
								var href01 = 'government_details.html?id=' + msg.data[8].id;
								var abstract = cut(msg.data[8].abstract, 40);
								var href02 = 'government_details.html?id=' + msg.data[9].id;
								var abstract01 = cut(msg.data[9].abstract, 40);
								$('.activitys .Last').eq(0).find('.newsTitle').html(msg.data[8].title);
								$('.activitys .Last').eq(0).find('.newsTitle').attr('href', href01);
								$('.activitys .Last').eq(0).find('.cover').attr('href', href01);
								$('.activitys .Last').eq(0).find('.goDetail').attr('href', href01);
								$('.activitys .Last').eq(0).find('img').attr('src', msg.data[8].pic);	
								$('.activitys .Last').eq(0).find('.abstract').text(abstract);
								
								$('.activitys .Last').eq(1).find('.newsTitle').html(msg.data[9].title);
								$('.activitys .Last').eq(1).find('.newsTitle').attr('href', href02);
								$('.activitys .Last').eq(1).find('.cover').attr('href', href02);
								$('.activitys .Last').eq(1).find('.goDetail').attr('href', href02);
								$('.activitys .Last').eq(1).find('img').attr('src', msg.data[9].pic);	
								$('.activitys .Last').eq(1).find('.abstract').text(abstract01);
							} catch(e) {
								//TODO handle the exception
							}
							$('.activitys .hasdatas').removeClass('hide');
						} else if(msg.code == 1000) {
							$('.activitys .nodatas').removeClass('hide');
							$('.activitys .hasdatas').addClass('hide');
						} else {
							layer.msg('查询失败!', {
								icon: 1,
								time: 1000
							});
						}
					}
				});
				
			});

			/*点击搜索进入搜索结果页*/
			$("#submit_keyword").click(function() {
				var keyword = $("#keyword").val();
				window.location.href = "{:url('index/search/search_work')}?" + keyword
			});

			//回车键绑定搜索
			$(".searchArea").keydown(function(event) {
				if(event.keyCode == 13) {
					var keyword = $("#keyword").val();
					window.location.href = "{:url('index/search/search_work')}?" + keyword
				}
			});
		</script>
{/block}